package com.yinpeng.service.impl;

import com.yinpeng.dao.UserDao;
import com.yinpeng.entity.User;
import com.yinpeng.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    // 注入service依赖
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> getList() {
        return userDao.queryList(0, 1000);
    }
}
